package com.chenyue.cm.user.domain;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class JdLabelSendExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public JdLabelSendExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andLabelIsNull() {
            addCriterion("`label` is null");
            return (Criteria) this;
        }

        public Criteria andLabelIsNotNull() {
            addCriterion("`label` is not null");
            return (Criteria) this;
        }

        public Criteria andLabelEqualTo(String value) {
            addCriterion("`label` =", value, "label");
            return (Criteria) this;
        }

        public Criteria andLabelNotEqualTo(String value) {
            addCriterion("`label` <>", value, "label");
            return (Criteria) this;
        }

        public Criteria andLabelGreaterThan(String value) {
            addCriterion("`label` >", value, "label");
            return (Criteria) this;
        }

        public Criteria andLabelGreaterThanOrEqualTo(String value) {
            addCriterion("`label` >=", value, "label");
            return (Criteria) this;
        }

        public Criteria andLabelLessThan(String value) {
            addCriterion("`label` <", value, "label");
            return (Criteria) this;
        }

        public Criteria andLabelLessThanOrEqualTo(String value) {
            addCriterion("`label` <=", value, "label");
            return (Criteria) this;
        }

        public Criteria andLabelLike(String value) {
            addCriterion("`label` like", value, "label");
            return (Criteria) this;
        }

        public Criteria andLabelNotLike(String value) {
            addCriterion("`label` not like", value, "label");
            return (Criteria) this;
        }

        public Criteria andLabelIn(List<String> values) {
            addCriterion("`label` in", values, "label");
            return (Criteria) this;
        }

        public Criteria andLabelNotIn(List<String> values) {
            addCriterion("`label` not in", values, "label");
            return (Criteria) this;
        }

        public Criteria andLabelBetween(String value1, String value2) {
            addCriterion("`label` between", value1, value2, "label");
            return (Criteria) this;
        }

        public Criteria andLabelNotBetween(String value1, String value2) {
            addCriterion("`label` not between", value1, value2, "label");
            return (Criteria) this;
        }

        public Criteria andReferUserIsNull() {
            addCriterion("refer_user is null");
            return (Criteria) this;
        }

        public Criteria andReferUserIsNotNull() {
            addCriterion("refer_user is not null");
            return (Criteria) this;
        }

        public Criteria andReferUserEqualTo(Integer value) {
            addCriterion("refer_user =", value, "referUser");
            return (Criteria) this;
        }

        public Criteria andReferUserNotEqualTo(Integer value) {
            addCriterion("refer_user <>", value, "referUser");
            return (Criteria) this;
        }

        public Criteria andReferUserGreaterThan(Integer value) {
            addCriterion("refer_user >", value, "referUser");
            return (Criteria) this;
        }

        public Criteria andReferUserGreaterThanOrEqualTo(Integer value) {
            addCriterion("refer_user >=", value, "referUser");
            return (Criteria) this;
        }

        public Criteria andReferUserLessThan(Integer value) {
            addCriterion("refer_user <", value, "referUser");
            return (Criteria) this;
        }

        public Criteria andReferUserLessThanOrEqualTo(Integer value) {
            addCriterion("refer_user <=", value, "referUser");
            return (Criteria) this;
        }

        public Criteria andReferUserIn(List<Integer> values) {
            addCriterion("refer_user in", values, "referUser");
            return (Criteria) this;
        }

        public Criteria andReferUserNotIn(List<Integer> values) {
            addCriterion("refer_user not in", values, "referUser");
            return (Criteria) this;
        }

        public Criteria andReferUserBetween(Integer value1, Integer value2) {
            addCriterion("refer_user between", value1, value2, "referUser");
            return (Criteria) this;
        }

        public Criteria andReferUserNotBetween(Integer value1, Integer value2) {
            addCriterion("refer_user not between", value1, value2, "referUser");
            return (Criteria) this;
        }

        public Criteria andGetUserIsNull() {
            addCriterion("get_user is null");
            return (Criteria) this;
        }

        public Criteria andGetUserIsNotNull() {
            addCriterion("get_user is not null");
            return (Criteria) this;
        }

        public Criteria andGetUserEqualTo(Integer value) {
            addCriterion("get_user =", value, "getUser");
            return (Criteria) this;
        }

        public Criteria andGetUserNotEqualTo(Integer value) {
            addCriterion("get_user <>", value, "getUser");
            return (Criteria) this;
        }

        public Criteria andGetUserGreaterThan(Integer value) {
            addCriterion("get_user >", value, "getUser");
            return (Criteria) this;
        }

        public Criteria andGetUserGreaterThanOrEqualTo(Integer value) {
            addCriterion("get_user >=", value, "getUser");
            return (Criteria) this;
        }

        public Criteria andGetUserLessThan(Integer value) {
            addCriterion("get_user <", value, "getUser");
            return (Criteria) this;
        }

        public Criteria andGetUserLessThanOrEqualTo(Integer value) {
            addCriterion("get_user <=", value, "getUser");
            return (Criteria) this;
        }

        public Criteria andGetUserIn(List<Integer> values) {
            addCriterion("get_user in", values, "getUser");
            return (Criteria) this;
        }

        public Criteria andGetUserNotIn(List<Integer> values) {
            addCriterion("get_user not in", values, "getUser");
            return (Criteria) this;
        }

        public Criteria andGetUserBetween(Integer value1, Integer value2) {
            addCriterion("get_user between", value1, value2, "getUser");
            return (Criteria) this;
        }

        public Criteria andGetUserNotBetween(Integer value1, Integer value2) {
            addCriterion("get_user not between", value1, value2, "getUser");
            return (Criteria) this;
        }

        public Criteria andGetTimeIsNull() {
            addCriterion("get_time is null");
            return (Criteria) this;
        }

        public Criteria andGetTimeIsNotNull() {
            addCriterion("get_time is not null");
            return (Criteria) this;
        }

        public Criteria andGetTimeEqualTo(Date value) {
            addCriterion("get_time =", value, "getTime");
            return (Criteria) this;
        }

        public Criteria andGetTimeNotEqualTo(Date value) {
            addCriterion("get_time <>", value, "getTime");
            return (Criteria) this;
        }

        public Criteria andGetTimeGreaterThan(Date value) {
            addCriterion("get_time >", value, "getTime");
            return (Criteria) this;
        }

        public Criteria andGetTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("get_time >=", value, "getTime");
            return (Criteria) this;
        }

        public Criteria andGetTimeLessThan(Date value) {
            addCriterion("get_time <", value, "getTime");
            return (Criteria) this;
        }

        public Criteria andGetTimeLessThanOrEqualTo(Date value) {
            addCriterion("get_time <=", value, "getTime");
            return (Criteria) this;
        }

        public Criteria andGetTimeIn(List<Date> values) {
            addCriterion("get_time in", values, "getTime");
            return (Criteria) this;
        }

        public Criteria andGetTimeNotIn(List<Date> values) {
            addCriterion("get_time not in", values, "getTime");
            return (Criteria) this;
        }

        public Criteria andGetTimeBetween(Date value1, Date value2) {
            addCriterion("get_time between", value1, value2, "getTime");
            return (Criteria) this;
        }

        public Criteria andGetTimeNotBetween(Date value1, Date value2) {
            addCriterion("get_time not between", value1, value2, "getTime");
            return (Criteria) this;
        }

        public Criteria andGetGroupIsNull() {
            addCriterion("get_group is null");
            return (Criteria) this;
        }

        public Criteria andGetGroupIsNotNull() {
            addCriterion("get_group is not null");
            return (Criteria) this;
        }

        public Criteria andGetGroupEqualTo(Integer value) {
            addCriterion("get_group =", value, "getGroup");
            return (Criteria) this;
        }

        public Criteria andGetGroupNotEqualTo(Integer value) {
            addCriterion("get_group <>", value, "getGroup");
            return (Criteria) this;
        }

        public Criteria andGetGroupGreaterThan(Integer value) {
            addCriterion("get_group >", value, "getGroup");
            return (Criteria) this;
        }

        public Criteria andGetGroupGreaterThanOrEqualTo(Integer value) {
            addCriterion("get_group >=", value, "getGroup");
            return (Criteria) this;
        }

        public Criteria andGetGroupLessThan(Integer value) {
            addCriterion("get_group <", value, "getGroup");
            return (Criteria) this;
        }

        public Criteria andGetGroupLessThanOrEqualTo(Integer value) {
            addCriterion("get_group <=", value, "getGroup");
            return (Criteria) this;
        }

        public Criteria andGetGroupIn(List<Integer> values) {
            addCriterion("get_group in", values, "getGroup");
            return (Criteria) this;
        }

        public Criteria andGetGroupNotIn(List<Integer> values) {
            addCriterion("get_group not in", values, "getGroup");
            return (Criteria) this;
        }

        public Criteria andGetGroupBetween(Integer value1, Integer value2) {
            addCriterion("get_group between", value1, value2, "getGroup");
            return (Criteria) this;
        }

        public Criteria andGetGroupNotBetween(Integer value1, Integer value2) {
            addCriterion("get_group not between", value1, value2, "getGroup");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}